% TOPOLOGY DESCRIPTION: sys_pt2_cl.m

%  input:       x    ... system state vector @ t
%               t    ... current time
%  output:      xdot ... system state vector derivative @ t
%               y    ... subsystem outputs @ t

function [xdot,y] = sys_pseudorate_mod(x,u,t)

% system_3 ---> START Block
[dumx,y_start] = system_3(x(3),0,t);

% system_1
u1(1) = u;
u1(2) = y_start;
[xdot(1),y(1)] = system_1(x(1),u1,t);

% system_2    
u2(1) = y(1);
[xdot(2),y(2)] = system_2(x(2),u2,t);

% system_3    
u3(1) = y(2);
[xdot(3),y(3)] = system_3(x(3),u3,t);